<?php
class Prod_modelo extends Modelo_base {

	var $table = 'prod_modelo';

	var $has_many = array('prod_producto');

    // Validaciones de campos
    var $validation = array(
        'nombre' => array(
            'label' => 'Nombre del modelo',
            'rules' => array('required', 'trim', 'max_length' => 80, 'unique'),
            'get_rules' => array('trim')
            )
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file prod_modelo.php */
/* Location: ./application/models/prod_modelo.php */